package cn.pn.project.service;

import cn.pn.project.mapper.commodity.TicketInfoDao;
import cn.pn.project.pojo.commodity.Ticketinginfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 购票须知信息类
 */
@RestController
public class TicketInfoService {

    @Autowired
    private TicketInfoDao ticketInfoDao;

    @RequestMapping(value = "/getTicketInfoByCommodityId", method = RequestMethod.POST)
    public Ticketinginfo getTicketInfoByCommodityId(@RequestParam("commodityId") Integer commodityId){
            return  ticketInfoDao.getTicketInfoByCommodityId(commodityId);
    }
}
